/*
 * util.cpp
 *
 *	A bunch of utility studff
 *
 *  Created on: May 29, 2013
 *      Author: zapmunk
 */


#include "headerstop.h"

//Windows message compatibility
#ifdef _WIN32
#include <Windows.h>
void exitWithMessage(int exitCode, const char *const msg) {
   MessageBox(HWND_DESKTOP, msg, "Debug message!", MB_OK);
   exit(exitCode);
}
#else
void exitWithMessage(int exitCode, const char *const msg) {
   std::cout << msg << "\nExiting with code " << exitCode << std::endl;
   exit(exitCode);
}
#endif
